/**
 * @Author:刘忻忻,高志斐
 * @Date:2020/7/1
 * @Description:这是实名认证界面
 */
import React,{Component} from "react";
import Footer from "./Component_Approve/Footer";
import { createForm } from 'rc-form';
import {WhiteSpace, Icon, NavBar} from 'antd-mobile';

const FooterWrapper = createForm()(Footer);

export default class Approve extends Component{
    constructor(props) {
        super(props);
        this.state = {
        };
        this.handleLeftClick=this.handleLeftClick.bind(this)
    }
    //设置缓存，返回我的页
    handleLeftClick(event){
        localStorage.setItem('tabs',2);
        this.props.history.push('/terran/my')
    }
    render() {
        return (
            <div>
                <NavBar
                    mode="light"
                    icon={<Icon type="left" style={{color:"#f8a83f"}}/>}
                    onLeftClick={this.handleLeftClick}
                >实名认证</NavBar>
                <FooterWrapper history={this.props.history} />
            </div>
        )
    }
}
